package com.wang.spring.bean.a_type;

public abstract class Toy {

    private String name;

    public Toy(String name) {
        System.out.println("abstract class Toy 生产了："+name);
        this.name = name;
    }

    @Override
    public String toString() {
        return "Toy{" +
                "name='" + name + '\'' +
                '}';
    }
}
